#!/bin/sh

# http://www.cnblogs.com/yanghuahui/archive/2012/06/25/2561568.html

openssl genrsa -des3 -out server.key 1024
openssl req -new -key server.key -out server.csr
openssl rsa -in server.key.org -out server.key
openssl x509 -req -days 365 -in server.csr -signkey server.key -out server.crt
